.class Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;
.super Lcom/htc/android/footprints/ILocationAgentCallback$Stub;
.source "FootprintDetailEditActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 1408
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-direct {p0}, Lcom/htc/android/footprints/ILocationAgentCallback$Stub;-><init>()V

    return-void
.end method


# virtual methods
.method public onAgentPause()V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 1410
    return-void
.end method

.method public onUpdateStatus(IIDD)V
    .locals 8
    .parameter "status"
    .parameter "signallevel"
    .parameter "latitude"
    .parameter "longitude"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    const v3, 0x7f0a003c

    const-wide v5, 0x412e848000000000L

    const-string v7, "gps"

    const-string v4, "FootprintDetailEditActivity"

    .line 1346
    packed-switch p1, :pswitch_data_0

    .line 1406
    :goto_0
    return-void

    .line 1348
    :pswitch_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 1349
    const-string v0, "FootprintDetailEditActivity"

    const-string v0, "onUpdateStatus : INDICATOR_STOP"

    invoke-static {v4, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 1353
    :pswitch_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    const v1, 0x7f0a003d

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 1358
    :pswitch_2
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    mul-double v1, p3, v5

    double-to-int v1, v1

    iput v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 1359
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    mul-double v1, p5, v5

    double-to-int v1, v1

    iput v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 1361
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    const-string v1, "gps"

    invoke-virtual {v0, v7}, Lcom/htc/android/footprints/vo/Footprint;->setAccuracyByProvider(Ljava/lang/String;)V

    .line 1363
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 1364
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$3000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1366
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 1367
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #calls: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->moveMapCenterToCurrent()V
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$3100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    .line 1369
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v0}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V

    .line 1370
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 1371
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2700(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/widget/HtcAlertDialog;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1372
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2700(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/widget/HtcAlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Lcom/htc/widget/HtcAlertDialog;->dismiss()V

    .line 1376
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    if-nez v0, :cond_1

    .line 1377
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    new-instance v1, Landroid/location/Location;

    const-string v2, "gps"

    invoke-direct {v1, v7}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1002(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/location/Location;)Landroid/location/Location;

    .line 1379
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    invoke-virtual {v0, p3, p4}, Landroid/location/Location;->setLatitude(D)V

    .line 1380
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    invoke-virtual {v0, p5, p6}, Landroid/location/Location;->setLongitude(D)V

    .line 1381
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/os/Handler;

    move-result-object v0

    const/16 v1, 0x66

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 1383
    const-string v0, "FootprintDetailEditActivity"

    const-string v0, "onUpdateStatus : INDICATOR_FIX_GPS"

    invoke-static {v4, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 1387
    :pswitch_3
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    if-nez v0, :cond_2

    .line 1388
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    new-instance v1, Landroid/location/Location;

    const-string v2, "network"

    invoke-direct {v1, v2}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2302(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/location/Location;)Landroid/location/Location;

    .line 1389
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    invoke-virtual {v0, p3, p4}, Landroid/location/Location;->setLatitude(D)V

    .line 1390
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    invoke-virtual {v0, p5, p6}, Landroid/location/Location;->setLongitude(D)V

    .line 1396
    :goto_1
    const-string v0, "FootprintDetailEditActivity"

    const-string v0, "onUpdateStatus : INDICATOR_FIX_NETWORK"

    invoke-static {v4, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 1393
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    invoke-virtual {v0, p3, p4}, Landroid/location/Location;->setLatitude(D)V

    .line 1394
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;

    move-result-object v0

    invoke-virtual {v0, p5, p6}, Landroid/location/Location;->setLongitude(D)V

    goto :goto_1

    .line 1400
    :pswitch_4
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$3200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 1401
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/16 v1, 0xc

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showDialog(I)V

    .line 1403
    :cond_3
    const-string v0, "FootprintDetailEditActivity"

    const-string v0, "onUpdateStatus : INDICATOR_TIMEOUT"

    invoke-static {v4, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 1346
    :pswitch_data_0
    .packed-switch 0xa
        :pswitch_0
        :pswitch_1
        :pswitch_4
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
